using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;

namespace YakShaver.WCSF.BuildManager.Views
{
    public class DefaultViewPresenter : Presenter<IDefaultView>
    {
        private IBuildManagerController _controller;
        
        public DefaultViewPresenter([CreateNew] IBuildManagerController controller)
        {
            this._controller = controller;
            
        }
        public override void OnViewInitialized()
        {
            base.OnViewInitialized();
            View.SetBuilds(_controller.GetProjects());
        }

        public override void OnViewLoaded()
        {
            base.OnViewLoaded();
            View.SetBuilds(_controller.GetProjects());
        }

       
    }
}
